<?php
$title = '存取';
$this->headTitle($title);
?>
<h1><?php echo $this->escapeHtml($title); ?></h1>
<hr>
<table class="table table-hover table-striped">
    <tr>
        <th>存取时间</th>
        <th>金额</th>
        <th>操作</th>
    </tr>
    <?php foreach ($this->access as $key => $access) { ?>
        <tr>
            <td><?php echo $access['access_time']; ?></td>
            <td><?php echo abs($access['account']); ?></td>
            <td><?php echo ($access['account'] > 0) ? '存款' : '取款'; ?></td>
        </tr>
    <?php } ?>
</table>